    <!-- 右 -->
    <div class="content">
        <div class="header">
            <h1 class="page-title">修改密码</h1>
        </div>

        <div class="well">
            <!-- add form -->
            <form action="{:url('/admin/manager/upPwddate')}" method="post" id="tab">
                <!-- 隐藏的用户id -->
                <label>账号名称：</label>
                <input type="text" value="{$data.nickname}" class="input-xlarge" disabled>
                <input type="hidden" name="id" value="{$data.id}">
                {:token()}
                <label>原密码：</label>
                <input type="text" name="oldpassword" id="oldpwd" value="" class="input-xlarge">
                <label>新密码：</label>
                <input type="text" name="password" id="newpwd" value="" class="input-xlarge">
                <label>确认密码：</label>
                <input type="text" name="password_confirm" id="repwd" value="" class="input-xlarge">
                <label></label>
                <button class="btn btn-primary" type="button">保存</button>
            </form>
        </div>
    </div>
    <script>
        $(".btn-primary").click(function(){

            var flag = true;

            if($("#oldpwd").val() == "" || $("#newpwd").val() == "" || $("#repwd").val() == ""){
                alert("亲！不允许为空哦");
                flag = false;
            }

            if(flag){
                $("#tab").submit();
            }
        })
    </script>